package cn.ad.server.domain.ad;

import java.io.Serializable;

public class AreaPlatformMap implements Serializable {

	private static final long serialVersionUID = 1801683041161930054L;
	static final String VERSION = "0";
	static final String CACHE_NAME = "areaplatformmap";

	private int id;
	/**
	 * 类型 1省份  2城市
	 */
	private int type;
	private int areaId;
	private int platformId;
	private int targetId;

	
	public static String cacheKey(int targetId) {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(targetId).toString();
	}

	public String toCacheKey() {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(this.targetId).toString();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getAreaId() {
		return areaId;
	}

	public void setAreaId(int areaId) {
		this.areaId = areaId;
	}

	public int getPlatformId() {
		return platformId;
	}

	public void setPlatformId(int platformId) {
		this.platformId = platformId;
	}

	public int getTargetId() {
		return targetId;
	}

	public void setTargetId(int targetId) {
		this.targetId = targetId;
	}

	
	
}
